package com.woniuxy.common;


public class ApiException extends RuntimeException {

    private IerrorCode errorCode;

    public ApiException() {
        super();
    }

    public ApiException(String message) {
        super(message);
    }

    public ApiException(String message, Throwable cause) {
        super(message, cause);
    }

    public ApiException(Throwable cause) {
        super(cause);
    }

    public ApiException(IerrorCode errorCode){
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }

    public IerrorCode getErrorCode(){
        return errorCode;
    }
}
